﻿using Microsoft.CSharp.RuntimeBinder;

using System;
using System.Numerics;

namespace 类和类成员
{
    class Program
    {
       /*
       类的访问修饰符:public internal
       类的修饰符;abstract sealed static
       1.abstract:抽象类(不能实例化，不能New一个，只能继承) 
       2.sealed:封闭类(不能继承)
       3.static:静止态(不能实例化也不需要)
        
       类成员的访问修饰符:public private internal protected 
       类成员的修饰符:readonly static
      
       */
   
        static void Main(string[] args)
        {   
            Console.WriteLine(Bear.Age);
            Console.WriteLine(Bear.Name);

            Student teacher = new Student();
            Console.WriteLine(teacher.Height);
            Console.WriteLine(teacher.Id);
            Console.WriteLine(teacher.Name);

            School school = new School();
            Console.WriteLine(school.Width);

            Console.WriteLine(Pig.Name);
            Console.WriteLine(Pig.Height);
            Console.WriteLine(Pig.Weight);

            Legs legs = new Legs();
            Console.WriteLine(legs.Weight);
            Console.WriteLine(legs.Weights);
            Console.WriteLine(legs.Width);

            Eyes eyes = new Eyes();
            Console.WriteLine(eyes.Mount);
        }
    }
}
